import request from '@/utils/request'
import { IUserInfo, IResponseType } from './interface'

/**
 * 获取用户信息
 */
export function fetchUserInfo(): Promise<IResponseType> {
  return request({
    url: '/api/index',
    method: 'get'
  }) as any
}

export function signIn(params: IUserInfo) {
  return request({
    url: '/user/signIn',
    method: 'post',
    data: params
  })
}
